package cn.neusoft.yp.service;

import cn.neusoft.yp.pojo.Page;
import cn.neusoft.yp.pojo.Product;

import java.util.List;


/**
 * Created by gaosheng on 2017/4/27.
 */
public interface ProdService {
    Page<Product> findAll(int thispage, int rowperpage, String name,
                          String category, Double minprice, Double maxprice);

    Product findOne(String id);

    List<Product> findProd(int prepage, int nextpage);

    List<Product> findprod();

    void addProd(Product product);

    void deleteProd(String id);

    Page toPage(int thispage, int rowperpage);
}
